package com.yhgm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yhgm.common.BaseResponse;
import com.yhgm.data.ReqCopy;
import com.yhgm.pojo.Image;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Author ZY
 * @Date 2024/4/26 14:05
 */

public interface ImageService  extends IService<Image> {
    BaseResponse<Integer> addFile(Image image);

    BaseResponse<List<Image>> listFile(String url);

    BaseResponse<Long> delFile(Long[] id);

    BaseResponse<Integer> updateFile(Image image);

    BaseResponse<List<Image>> listRecycle(String  path);

    BaseResponse<Integer> recoverImages(Long[] ids);
    BaseResponse<Long> delRecycle(Long[] ids);

    BaseResponse<List<Image>> findByCondition(Image image);

    BaseResponse<Long> copyFile(ReqCopy reqCopy) throws Exception;

    String uploadFile(MultipartFile file) throws IOException;
}
